package top.kaoshanji.ch01.collecting;

/**
 * author kaoshanji
 * ^_^
 * create time 2024/12/5 18:56
 */
public class City {

    private String name; // 城市
    private String state; // 州
    private int population; // 人口数量

    public City(String name, String state, int population) {
        this.name = name;
        this.state = state;
        this.population = population;
    }

    public String getName() {
        return name;
    }

    public String getState() {
        return state;
    }

    public int getPopulation() {
        return population;
    }

    @Override
    public String toString() {
        return "City{" + "name='" + name + '\'' + ", state='" + state + '\'' + ", population=" + population + '}';
    }
}

